package com.zuikaku.service.impl;

import com.zuikaku.dao.ItemMapper;
import com.zuikaku.pojo.Item;
import com.zuikaku.service.ItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ItemServiceImpl implements ItemService {
    @Resource
    private ItemMapper itemMapper;

    @Override
    public Item getItemByPk(Integer itemId) {
        return itemMapper.selectByPrimaryKey(itemId);
    }

    @Override
    public int updateItemByItem(Item item) {
        return itemMapper.updateByPrimaryKeySelective(item);
    }
}
